package com.cqcet.wenchuang.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@ApiModel(value = "订单详情实体类")
public class OrderDetails {
    //序列化版本号
    private static final long serialVersionUID = 1L;

    //主键，自动生成
    @ApiModelProperty(value = "ID")
    private Long id;

    //订单id
    @ApiModelProperty(value = "订单id")
    private Long orderId;

    //订单编号
    @ApiModelProperty(value = "订单详情编号")
    private String code;

    //商品id
    @ApiModelProperty(value = "商品id")
    private Long goodsId;

    //商家id
    @ApiModelProperty(value = "商家id")
    private Long adminId;

    //购买时的单价
    @ApiModelProperty(value = "总价")
    private Double totalPrices;

    //数量
    @ApiModelProperty(value = "数量")
    private Integer quantity;

    @ApiModelProperty(value = "省份")
    private String province;

    @ApiModelProperty(value = "城市")
    private String city;

    @ApiModelProperty(value = "详细地址")
    private String details;

    //收货人电话
    @ApiModelProperty(value = "收货人电话")
    private String phone;

    //收货人姓名
    @ApiModelProperty(value = "收货人姓名")
    private String consignee;

    //备注
    @ApiModelProperty(value = "备注")
    private String remark;

    //逻辑删除，0删除
    @ApiModelProperty(value = "逻辑删除标识:0删除,1未删除")
    private Integer isDelete;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @TableField(fill = FieldFill.INSERT)
    private Long createUser;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateUser;
}
